/*
 * $Id: AbstractRequest.java,v 1.4 2010/10/25 19:48:15 navdeep_mahajan Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Wed Dec 31 15:32:23 CST 2008 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

import com.ge.healthcare.autosc.common.message.converter.AutoSCMessage;

/**
 * A class that represents a row in the ACT_REQUEST table. 
 * You can customize the behavior of this class by editing the class, {@link ActRequest()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractRequest 
    implements AutoSCMessage, Serializable
{
    /**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 7095456132753981622L;

	/** The cached hash code value for this instance.  Setting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The composite primary key value. */
    private java.lang.Long requestId;

    /** The value of the actRequestList association. */
    private Long requestListId;
    
    private Long requestDefnId;

    /** The value of the cfgCodeDetails association. */
    private Long codeId;

    /** The value of the simple systemId property. */
    private java.lang.String systemId;

    private Long addressId;
    
    /** The value of the simple productLine property. */
    private java.lang.String productLine;

    /** The value of the simple modelType property. */
    private java.lang.String modelType;

    /** The value of the simple modality property. */
    private java.lang.String modality;

    /** The value of the simple usn property */
    private java.lang.String usn;
    
    private String mln;
    
    /** The value of the simple ipAddress property. */
    private java.lang.String ipAddress;

    /** The value of the simple pole property. */
    private java.lang.String pole;

    /** The value of the simple isoCode property. */
    private java.lang.String isoCode;
    
    /** The value of the simple modemAreaCityCode property. */
    private java.lang.String modemAreaCityCode;
    
    /** The value of the simple modemNum property. */
    private java.lang.String modemNum;

    /** The value of the simple connectType property. */
    private java.lang.String connectType;

    /** The value of the simple portMaster property. */
    private java.lang.String portMaster;

    /** The value of the simple serviceCenter property. */
    private java.lang.String serviceCenter;
    
    /** The value of the simple startTime property. */
	private java.util.Date startTime;

	/** The value of the simple endTime property. */
	private java.util.Date endTime;
	/**
	 * The value for systemType property
	 */
	private java.lang.String systemType;
    /**
     * Simple constructor of AbstractRequest instances.
     */
    public AbstractRequest()
    {
    }

    /**
     * Constructor of AbstractRequest instances given a simple primary key.
     * @param requestId
     */
    public AbstractRequest(java.lang.Long requestId)
    {
        this.setRequestId(requestId);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Long
     */
    public java.lang.Long getRequestId()
    {
        return requestId;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param requestId
     */
    public void setRequestId(java.lang.Long requestId)
    {
        this.hashValue = 0;
        this.requestId = requestId;
    }

    /**
     * Return the value of the REQUEST_LIST_ID column.
     * @return ActRequestList
     */
    public Long getRequestListId()
    {
        return this.requestListId;
    }

    /**
     * Set the value of the REQUEST_LIST_ID column.
     * @param actRequestList
     */
    public void setRequestListId(Long requestListId)
    {
        this.requestListId = requestListId;
    }

    /**
     * Return the value of the SYSTEM_ID column.
     * @return java.lang.String
     */
    public java.lang.String getSystemId()
    {
        return this.systemId;
    }

    /**
     * Set the value of the SYSTEM_ID column.
     * @param systemId
     */
    public void setSystemId(java.lang.String systemId)
    {
        this.systemId = systemId;
    }

    /**
     * Return the value of the CODE_ID column.
     * @return CfgCodeDetails
     */
    public Long getCodeId()
    {
        return this.codeId;
    }

    /**
     * Set the value of the CODE_ID column.
     * @param cfgCodeDetails
     */
    public void setCodeId(Long codeId)
    {
        this.codeId = codeId;
    }

    /**
     * Return the value of the PRODUCT_LINE column.
     * @return java.lang.String
     */
    public java.lang.String getProductLine()
    {
        return this.productLine;
    }

    /**
     * Set the value of the PRODUCT_LINE column.
     * @param productLine
     */
    public void setProductLine(java.lang.String productLine)
    {
        this.productLine = productLine;
    }

    /**
     * Return the value of the MODEL_TYPE column.
     * @return java.lang.String
     */
    public java.lang.String getModelType()
    {
        return this.modelType;
    }

    /**
     * Set the value of the MODEL_TYPE column.
     * @param modelType
     */
    public void setModelType(java.lang.String modelType)
    {
        this.modelType = modelType;
    }

    /**
     * Return the value of the USN column.
     * @return java.lang.String
     */
    public java.lang.String getUsn()
    {
        return this.usn;
    }

    /**
     * Set the value of the USN column.
     * @param modelType
     */
    public void setUsn(java.lang.String usn)
    {
        this.usn = usn;
    }
    
    /**
     * Return the value of the MODALITY column.
     * @return java.lang.String
     */
    public java.lang.String getModality()
    {
        return this.modality;
    }

    /**
     * Set the value of the MODALITY column.
     * @param modality
     */
    public void setModality(java.lang.String modality)
    {
        this.modality = modality;
    }

    /**
     * Return the value of the IP_ADDRESS column.
     * @return java.lang.String
     */
    public java.lang.String getIpAddress()
    {
        return this.ipAddress;
    }

    /**
     * Set the value of the IP_ADDRESS column.
     * @param ipAddress
     */
    public void setIpAddress(java.lang.String ipAddress)
    {
        this.ipAddress = ipAddress;
    }

    /**
     * Return the value of the POLE column.
     * @return java.lang.String
     */
    public java.lang.String getPole()
    {
        return this.pole;
    }

    /**
     * Set the value of the POLE column.
     * @param pole
     */
    public void setPole(java.lang.String pole)
    {
        this.pole = pole;
    }

    /**
     * Return the value of the ISO_CODE column.
     * @return java.lang.String
     */
    public java.lang.String getIsoCode()
    {
        return this.isoCode;
    }

    /**
     * Set the value of the ISO_CODE column.
     * @param isoCode
     */
    public void setIsoCode(java.lang.String isoCode)
    {
        this.isoCode = isoCode;
    }

    /**
     * Return the value of the MODEM_AREA_CITY_CODE column.
     * @return java.lang.String
     */
    public java.lang.String getModemAreaCityCode()
    {
        return this.modemAreaCityCode;
    }

    /**
     * Set the value of the MODEM_AREA_CITY_CODE column.
     * @param isoCode
     */
    public void setModemAreaCityCode(java.lang.String modemAreaCityCode)
    {
        this.modemAreaCityCode = modemAreaCityCode;
    }
    
    /**
     * Return the value of the MODEM_NUM column.
     * @return java.lang.String
     */
    public java.lang.String getModemNum()
    {
        return this.modemNum;
    }

    /**
     * Set the value of the MODEM_NUM column.
     * @param isoCode
     */
    public void setModemNum(java.lang.String modemNum)
    {
        this.modemNum = modemNum;
    }
    
    /**
     * Return the value of the CONNECT_TYPE column.
     * @return java.lang.String
     */
    public java.lang.String getConnectType()
    {
        return this.connectType;
    }

    /**
     * Set the value of the CONNECT_TYPE column.
     * @param connectType
     */
    public void setConnectType(java.lang.String connectType)
    {
        this.connectType = connectType;
    }

    /**
     * Return the value of the PORT_MASTER column.
     * @return java.lang.String
     */
    public java.lang.String getPortMaster()
    {
        return this.portMaster;
    }

    /**
     * Set the value of the PORT_MASTER column.
     * @param portMaster
     */
    public void setPortMaster(java.lang.String portMaster)
    {
        this.portMaster = portMaster;
    }

    /**
     * Return the value of the SERVICE_CENTER column.
     * @return java.lang.String
     */
    public java.lang.String getServiceCenter()
    {
        return this.serviceCenter;
    }

    /**
     * Set the value of the SERVICE_CENTER column.
     * @param serviceCenter
     */
    public void setServiceCenter(java.lang.String serviceCenter)
    {
        this.serviceCenter = serviceCenter;
    }
    
    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof ActRequest))
            return false;
        ActRequest that = (ActRequest) rhs;
        if (this.getRequestId() == null || that.getRequestId() == null)
            return false;
        return (this.getRequestId().equals(that.getRequestId()));
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int requestIdValue = this.getRequestId() == null ? 0 : this.getRequestId().hashCode();
            result = result * 37 + requestIdValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }

	public Long getRequestDefnId() {
		return requestDefnId;
	}

	public void setRequestDefnId(Long requestDefnId) {
		this.requestDefnId = requestDefnId;
	}

	/**
	 * @return the startTime
	 */
	public java.util.Date getStartTime() {
		return startTime;
	}

	/**
	 * @param startTime the startTime to set
	 */
	public void setStartTime(java.util.Date startTime) {
		this.startTime = startTime;
	}

	/**
	 * @return the endTime
	 */
	public java.util.Date getEndTime() {
		return endTime;
	}

	/**
	 * @param endTime the endTime to set
	 */
	public void setEndTime(java.util.Date endTime) {
		this.endTime = endTime;
	}

	/**
	 * @return the addressId
	 */
	public Long getAddressId() {
		return addressId;
	}

	/**
	 * @param addressId the addressId to set
	 */
	public void setAddressId(Long addressId) {
		this.addressId = addressId;
	}

	/**
	 * @return the mln
	 */
	public String getMln() {
		return mln;
	}

	/**
	 * @param mln the mln to set
	 */
	public void setMln(String mln) {
		this.mln = mln;
	}

	/**
	 * @return the systemType
	 */
	public java.lang.String getSystemType() {
		return systemType;
	}

	/**
	 * @param systemType the systemType to set
	 */
	public void setSystemType(java.lang.String systemType) {
		this.systemType = systemType;
	}
}
